package com.leesche.zcsp.node.web.service.impl.data.read;

import com.leesche.zcsp.node.web.model.PubDiscount;

import java.io.Serializable;
import java.util.Date;

public class PubDiscountDto implements Serializable {
    private String discountid;

    private String discountname;

    private Integer money;

    private Integer coin;

    /**
     * 标识是否被绑定（0：未绑定，1：已绑定）
     */
    private Integer flag;

    public PubDiscountDto() {
    }

    public PubDiscountDto(PubDiscount discount) {
        this.discountid = String.valueOf(discount.getDiscountid());
        this.discountname = discount.getDiscountname();
        this.money = discount.getMoney();
        this.coin = discount.getCoin();
    }

    public String getDiscountid() {
        return discountid;
    }

    public void setDiscountid(String discountid) {
        this.discountid = discountid == null ? null : discountid.trim();
    }

    public String getDiscountname() {
        return discountname;
    }

    public void setDiscountname(String discountname) {
        this.discountname = discountname == null ? null : discountname.trim();
    }

    public Integer getMoney() {
        return money;
    }

    public void setMoney(Integer money) {
        this.money = money;
    }

    public Integer getCoin() {
        return coin;
    }

    public void setCoin(Integer coin) {
        this.coin = coin;
    }

    public Integer getFlag() {
        return flag;
    }

    public void setFlag(Integer flag) {
        this.flag = flag;
    }
}